#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


import uvloop  # windows不支持
import asyncio


# 将默认的事件循环替换成uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())


async def work():
    print(1)
    await asyncio.sleep(2)
    return '111'


async def main():
    asyncio.create_task(work())
    asyncio.create_task(work())


asyncio.run(main())
